075ecfc7025da6b4b8cf8f40fe87f93530ed5496,community/src/test/java/org/neo4j/graphalgo/path/TestAStar.java,TestAStar,testSimplest,#,40

Before Change


        Relationship relBC = graph.makeEdge( "B", "C", "length", 3d );
        Relationship relAC = graph.makeEdge( "A", "C", "length", 10d );

        AStar astar = new AStar( graphDb,
                TraversalFactory.expanderForAllTypes(), new DoubleEvaluator(
                        "length" ), ESTIMATE_EVALUATOR );

        WeightedPath path = astar.findSinglePath( nodeA, nodeC );
        assertEquals( (Double)5d, (Double)path.weight() );
        assertPath( path, nodeA, nodeB, nodeC );
    }

    @Ignore

After Change


        Relationship relBC = graph.makeEdge( "B", "C", "length", 3d );
        Relationship relAC = graph.makeEdge( "A", "C", "length", 10d );

        PathFinder<WeightedPath> astar = newFinder();
        int counter = 0;
        for ( WeightedPath path : astar.findAllPaths( nodeA, nodeC ) )
        {
            assertEquals( (Double)5d, (Double)path.weight() );
            assertPath( path, nodeA, nodeB, nodeC );
            counter++;
        }
//        assertEquals( 2, counter );